#ifndef _OGL_RENDER_TAEGET_H_
#define _OGL_RENDER_TAEGET_H_

#include "graphics/image_cache.h"
#include "graphics/surface.h"


class OglImageCache : public ImageCache
{
public:
						OglImageCache();			
	virtual				~OglImageCache();

	virtual void		Create(int	Width=1024, int Heigh=1024, int Depth=32);
	virtual void		ClearCache(COLOR c=0xff000000);
	virtual bool		BeginCache();
	virtual void		EndCache();
	virtual void		SetTextureStage(int Stage);
	virtual void		Flush();
	virtual void		Recreate();
	
protected:
	
	/*void				FlipTexture(unsigned char** Data,unsigned int Width,unsigned int Height);*/

	unsigned int		m_Texture;
	unsigned int		m_Format;		// GLRGB or GLRGBA?
		
		
};

#endif // _ogl_SURFACE_H_